﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.SYS.Library;
using ZX.BLL;
using ZX.Web.UI.Controls;
using ZX.Web.UI.Controls.ControlBind;

namespace ZX.WebApp.Crm.Customer
{
    public partial class AddLinkMan : BasePage
    {
        BDatPhraseDetail bllDetail = new BDatPhraseDetail();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                this.Code.Value = ZX.BLL.IDMaker.GetSequenceStr("CUS002");

                IList<DatPhraseDetail> listLinkType = bllDetail.GetDatPhraseDetailByClassValue("LinkmanType");
                DropDownListControl.DropDataSourceBind(this.TypeID, listLinkType, "PhraseText", "PhraseID");

                IList<DatPhraseDetail> listRelation = bllDetail.GetDatPhraseDetailByClassValue("Relation");
                DropDownListControl.DropDataSourceBind(this.Relation, listRelation, "PhraseText", "PhraseID"); 
            }
        }
        public string CustomerID
        {
            get { return this.GetStringFromQueryString("id",""); }
        }
    }
}